# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=netifrc
pkgver=0.7.7
pkgrel=0
pkgdesc="Gentoo Network Interface Management Scripts"
url="https://gitweb.gentoo.org/proj/netifrc.git/"
arch="noarch"
license="BSD-2-Clause"
depends="udev"
makedepends="eudev-dev"
subpackages="$pkgname-openrc $pkgname-doc"
source="https://gitweb.gentoo.org/proj/netifrc.git/snapshot/netifrc-$pkgver.tar.gz"

build() {
	make PREFIX=/usr SYSCONFDIR=/etc SBINDIR=/sbin all
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc SBINDIR=/sbin install
}

check() {
	make check
}

sha512sums="
3f97ddf503ab8805f34d051ec25f48126ca317e1da67f7c580cb5faac84b79527e4a937afd2766a31bf361d6b3c68b062ab8ef29611cae1ee10335135bdb6f5d  netifrc-0.7.7.tar.gz
"
